import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
import javax.faces.bean.ViewScoped;


@ManagedBean
@ViewScoped
public class LoginBeanMan
{
    public UserBean getUserBean() {
		return userBean;
	}


	public void setUserBean(UserBean userBean) {
		this.userBean = userBean;
	}


	private String name;
    private String password;
    @ManagedProperty(value = "#{userBean}")
    public UserBean userBean;


    public String getName ()
    {
        return name;
    }


    public void setName (final String name)
    {
        this.name = name;
        userBean.setNomeUtente(name);
    }


    public String getPassword ()
    {
        return password;
    }


    public void setPassword (final String password)
    {
        this.password = password;
    }
}

